package com.linjiahao.orderservice.client;

import com.linjiahao.commonutils.orderVo.EduCourseOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient("service-edu")
public interface EduClient {
    //根据课程id查询课程信息
    @GetMapping("/eduservice/course/getDto/{courseId}")
    public EduCourseOrder getCourseInfoDto(@PathVariable String courseId) ;

    @GetMapping("/eduservice/course/updateCourse/{courseId}")
    public void updatabuyCount(@PathVariable String courseId);
}
